<?php

namespace App\Module\Admin\Validator;

use App\System\Base\Validator\BaseValidator;

class NoticeValidator extends BaseValidator
{

    protected $rules = [
        'title'    => 'required|between:1,30',
        'content'  => 'required|between:1,700',
        'org_type' => 'required',
        'org_id'   => 'required',
        'province' => 'required',
    ];

    protected $messages = [
        'title.required'    => '请输入标题',
        'content.required'  => '请输入正文',
        'org_type.required' => '请输选择发送目标',
        'title.between'     => '标题长度在1~30个汉字之间',
        'content.between'   => '正文长度在1~700个汉字之间',
    ];

    protected $attributes = [

    ];
}